JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in

spork/misc/cond->>

spork


    macro
    /usr/local/lib/janet/spork/misc.janet on line 288, column 1

    (cond->> val & clauses)

    Threading conditional macro. It takes `val` to mutate, and 
    `clauses` pairs of condition and operation to which `val`, is 
    passed as last argument. All conditions are tried and for truthy 
    conditions the operation is executed. Returns mutated value if any 
    condition is truthy.


0 examplesSign in to add an example
Loading...